import request from '@/utils/request'

export function getCustomerList(playload) {
  return request({
    url: '/get',
    method: 'get',
    params: {
      module: 'CustomerService.view',
      ...playload
    }
  })
}

export function editCustomerList(playload) {
  const module_name = 'CustomerService.update'

  const data = {
    module: module_name,
    ...playload
  }

  return request({
    url: '/post',
    method: 'post',
    data
  })
}
